package com.buba.manager.mapper;

import com.buba.manager.pojo.Book;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 图书持久层
 */
@Repository
@Mapper
public interface BookMapper {
    Integer addBook(Book book);

    List<Book> selBook(Map<String, Object> map);

    Integer delBook(List<String> list);

    long selCount();

    Boolean updBook(Book book);

    List<Book> selBookByCondition(Map<String, Object> map);
}
